<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich" xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core" xmlns:a4j="http://richfaces.org/a4j">

	<!-- content -->
	<rg:titlePanel id="taskDailyPanel" headerTitle="今日任务" style="margin-top: 10px;" >
		<h:form id="taskDailyForm">
			<rg:table tableId="taskDailyTable" value="#{taskDailyAction.todayTask}" var="item">
				<rg:column property="customer.name" title="#{messages.luyuan_member_name}" sortable="false" />
				<rg:column property="customer.gender" title="性别" converter="#{genderConverter}" sortable="false" />
				<rg:column property="customer.mobile" title="#{messages.luyuan_member_mobile}" sortable="false" />
				<rg:column property="customer.memberIntegral.memberLevel" converter="#{memberLevelConverter}" title="会员等级"
					sortable="false" />
				<rg:column property="customer.memberGroups" title="会员类别" converter="#{memberGroupsConverter}" sortable="false" />
				<rg:column property="customer.liveness" title="会员状态" messagePrefix="luyuan_crm_member_liveness_"
					converter="#{messageConverter}" sortable="false" />
				<rg:column property="customer.loyalty" title="忠诚度" messagePrefix="luyuan_crm_member_loyalty_"
					converter="#{messageConverter}" sortable="false" />
				<rg:column property="expectedTime" title="执行时间" converter="#{dateConverter}" datePattern="yyyy-MM-dd"
					sortable="false" />
				<rg:column property="description" title="任务描述" sortable="false" />
				<rg:column cellType="oper" title="#{messages.crud_tbl_operate_label}">
					<ul class="links">
						<li><h:outputLink value="javascript:void(0);"
								onclick="UI.instance.showDialog({id:'executeTaskDaily', src:'/luyuan/task/executeTaskDaily.jsf?id=#{item.id}'});">执行任务</h:outputLink>
						</li>
					</ul>
				</rg:column>
			</rg:table>
		</h:form>
	</rg:titlePanel>
	<a:form>
		<a:jsFunction name="reRenderTaskDailyTable" reRender="taskDailyTable" />
	</a:form>
</ui:composition>